import {TYPES} from '../reduces/menuReducers';

export function changeNum(){
    return (dispatch,getState)=>{
        let {menu} = getState();
        dispatch({
            type:TYPES.CHANGENUM,
            num:++menu.num
        })
    }
}